// app/router/news.js
module.exports = app => {
    //  
    app.router.get('/admin/menus/list', app.controller.menus.list);
    app.router.get('/admin/roles/list', app.controller.roles.list);
    app.router.get('/admin/roles', app.controller.roles.index);
    app.router.post('/admin/roles', app.controller.roles.edit);
    app.router.post('/admin/login', app.controller.admin.login);
    app.router.get('/admin/user', app.controller.admin.user);
    app.router.get('/admin/user/list', app.controller.admin.userList);











    app.router.post('/admin/banner', app.controller.admin.createbanner);
    app.router.get('/admin/banner', app.controller.admin.banner);
    app.router.get('/admin/banner/del', app.controller.admin.destroy);


    app.router.post('/admin/upload', app.controller.upload.index);


    
    
};